package com.foreknow.elmboot.controller;

import com.foreknow.elmboot.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/FoodController")
public class FoodController {

    @Autowired
    private FoodService foodService;

    @PostMapping("/listFoodBusinessId")
    public Object listFoodBusinessId(Integer businessId){

        return foodService.listFoodByBusinessId(businessId);
    }
}
